home *** CD-ROM | disk | FTP | other *** search
/ The Essential Home & Business Collection / The Essential Home & Business Collection.iso / 27 / 3 / 5 / HP22D5.ZIP / EXTERN / CLEARBUF.C < prev    next >
Text File  |  1991-04-16  |  312b  |  25 lines

  1. #include "extern.h"        /* Extensions need these! */
  2.  
  3. ClearEventQueue(int NumArgs,...)
  4.  
  5. {
  6.     MSG msg;
  7.  
  8.     do {
  9.         GetEvent(&msg);
  10.     } while (msg.Event != EVENT_IDLE);
  11.  
  12.     return(STOP);
  13. }
  14.  
  15. POOL pascal Pool[] = {
  16.     {    "clearQueue",
  17.         ClearEventQueue,
  18.         0,
  19.         HANDLER},
  20.  
  21.     {    NULL,
  22.         NULL,
  23.         0,
  24.         0}    };
  25.